import Vue from 'vue'
import VueRouter from 'vue-router'
import login from '../views/login.vue'
import password from '../views/password.vue'
import PtManagement from '../views/one/Pmanagement/index.vue'
import ExpertAccount from '../views/one/ExpertAccount/index.vue'
import Review from '../views/one/Review'
import ClassStarts from '../views/one/ClassStarts'
import Closingreview from '../views/one/Closingreview'
import Systemettings from '../views/one/systemSettings'
import Informationmanagement from '../views/one/Informationmanagement/index'
import Release from '../views/one/release'
import Addquota from '../views/one/addquota'

import Home from '../views/bureauofeducation/home'
import Declare from '../views/bureauofeducation/declare'
import Topicstart from '../views/bureauofeducation/topicstart'
import Research from '../views/bureauofeducation/Research1'
import Metaphase from '../views/bureauofeducation/metaphase'
import Researchs from '../views/bureauofeducation/Research2'
import Conclusion from '../views/bureauofeducation/Conclusion'
import Expertmanagement from '../views/bureauofeducation/Expertmanagement'
import Change from '../views/bureauofeducation/change'
import Changepassword from '../views/bureauofeducation/changepassword'

import Experthome from '../views/expert/experthome'
import Lxps from '../views/expert/lxps'


import addUser from '../views/one/adduser.vue'
Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    redirect:'/login'
  },
  {
    path:'/adduser',
    name:'建用户',
    component:addUser
  },
  {
    path:'/403',
    name:'403',
    meta:{
      title:'无权限',
    },
    component:() =>import('@/views/403.vue')
  },
  {
    path: '/login',
    name: 'login',
    component: login
  },
  {
    path:'/password',
    name:'修改密码1',
    component:password
  },
  // 首页
  {
    path: '/',
    component: PtManagement,
    // children:
  },
  {
    path:'/ProjectManagement',
    name:'课题管理',
    component: PtManagement,
  },
  {
    path:'/ExpertAccount',
    name:'专家账号管理',
    component:ExpertAccount
  },
  {
    path:'/review',
    name:'立项评审',
    component:Review
  },
  {
    path:'/classStarts',
    name:'课题上报',
    component:ClassStarts
  },{
    path:'/statistics',
    name:'课题统计',
    component:() =>import('@/views/one/ClassStarts/Statistics.vue')
  },{
    path:'/closingreview',
    name:'结题评审',
    component:Closingreview
  },
  {
    path:'/systemsettings',
    name:'系统设置',
    component:Systemettings
  },
  {
    path:'/Informationmanagement',
    name:'信息管理',
    component:Informationmanagement
  },
  {
    path:'/release',
    name:'课题发布',
    component:Release
  },{
    path:'/addquota',
    name:'新增配额',
    component:Addquota
  },
  // 二级账号
  {
    path:'/home',
    name:'二级课题管理',
    component:Home
  },
  {
    path:'/declare',
    name:'课题申报',
    component:Declare
  },{
    path:'/topicstart',
    name:'二级课题开课',
    component:Topicstart
  },{
    path:'/research',
    name:'研究阶段1',
    component:Research
  },{
    path:'/metaphase',
    name:'二级课题中期',
    component:Metaphase
  },
  {
    path:'/researchs',
    name:'研究阶段2',
    component:Researchs
  },{
    path:'/conclusion',
    name:'结题',
    component:Conclusion
  },{
    path:'/expertmanagement',
    name:'专家管理',
    component:Expertmanagement
  },{
    path:'/change',
    name:'变更',
    component:Change
  },{
    path:'/changepassword',
    name:'修改密码',
    component:Changepassword
  },
  // 专家
  {
    path:'/experthome',
    name:'专家主页',
    component:Experthome
  },{
    path:'/porjectinfo',
    name:'lxps',
    component:Lxps
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})



export default router
